//
//  PosterCollectionViewCell.m
//  IComic_Stone
//
//  Created by 琳琳 on 15-3-23.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "PosterCollectionViewCell.h"
#import "UIImageView+WebCache.h"
@implementation PosterCollectionViewCell
- (void)dealloc
{
    [_posterImageView release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.posterImageView = [[UIImageView alloc] init];
        self.posterImageView.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:self.posterImageView];
        [_posterImageView release];
    }
    return self;
}
-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    self.posterImageView.frame = CGRectMake(0, 0, layoutAttributes.frame.size.width, layoutAttributes.frame.size.height);
    //设置占位图片
    //self.posterImageView setImageWithURL:<#(NSURL *)#> placeholderImage:<#(UIImage *)#>
}
@end
